const {By} = require("selenium-webdriver");
module.exports = {
  login: async (driver, username, password) => {
    await driver.get("https://sei-test.021hqit.com/group-10/")
    await driver.findElement(By.css(".el-form-item:nth-child(1) .el-input__inner")).click()
    await driver.findElement(By.css(".el-form-item:nth-child(1) .el-input__inner")).sendKeys(username)
    await driver.findElement(By.css(".el-form-item:nth-child(2) .el-input__inner")).click()
    await driver.findElement(By.css(".el-form-item:nth-child(2) .el-input__inner")).sendKeys(password)
    await driver.findElement(By.css(".el-button")).click()
  }
}
